package com.quectel.core.module.carparking.dto;

import com.quectel.core.module.device.dto.DeviceDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author bobo
 * @email bob.yu@quectel.com
 * @date 2022/02/22 09:44
 */
@Data
@Schema
public class CarParkingDoorDto implements Serializable {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    @NotNull
    private Long villageId;

    @Schema(description = "停车设备id")
    @NotNull
    private Long deviceId;

    /**
     * 停车场出入口类型 1.出口 2.入口 3.出入口
     */
    @Schema(description = "停车场出入口类型 1.出口 2.入口 3.出入口")
    @NotNull
    private Byte type;

    /**
     * 停车场出入口编码
     */
    @Schema(description = "停车场出入口编码")
    @NotNull
    @Length(min = 1, max = 50)
    private String code;

    /**
     * 停车场出入口名称
     */
    @Schema(description = "停车场出入口名称")
    @NotNull
    @Length(min = 1, max = 80)
    private String name;

    /**
     * 停车场出入口图片
     */
    @Schema(description = "停车场出入口图片")
    private String snapImages;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "小区名")
    private String villageName;

    @Schema(description = "设备实体")
    private DeviceDto device;
    /************非数据库字段 end **************/
}
